﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Media.Animation;

namespace WordTemplate1.WPF
{
    /// <summary>
    /// Logique d'interaction pour Step.xaml
    /// </summary>
    public partial class Step : UserControl
    {
        private string _text;

        public string Text
        {
            get
            {
                return _text;
            }
            set
            {
                _text = value;
                this.label1.Content = value;
            }
        }

        private List<PathGeometry> _PointFrom = new List<PathGeometry>();

        public List<PathGeometry> PointFrom
        {
            get { return _PointFrom; }
            set
            {
                _PointFrom = value;
            }
        }

        public bool StateActiv
        {
            set
            {
                if(value)
                    this.border1.Background = Brushes.LightGreen;
            }
        }

        public bool StatePassed
        {
            set
            {
                if (value)
                    this.border1.Background = Brushes.LightYellow;
            }
        }
        

        private List<PathGeometry> _PointTo = new List<PathGeometry>();

        public List<PathGeometry> PointTo
        {
            get { return _PointTo; }
            set { _PointTo = value; }
        }

        private List<Polygon> _Polygon = new List<Polygon>();

        public List<Polygon> Polygon
        {
            get { return _Polygon; }
            set { _Polygon = value; }
        }

        public Step()
        {
            InitializeComponent();
        }
    }
}
